package com.three.controller;

import com.three.aop.LogAnotation;
import com.three.entity.Staff;
import com.three.service.QuitStaffService;
import com.three.vo.R;
import com.three.vo.StaffInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/quitStaff")
public class QuitStaffController {
    @Autowired
    private QuitStaffService quitStaffService;
    //查询所有离职员工
    @PostMapping("/list")
    public R getQuitStaff(Integer currentPage, Integer pageSize,@RequestBody StaffInfoVo staffInfoVo){
        return quitStaffService.getQuitStaff(currentPage,pageSize,staffInfoVo);
    }

}
